function sumPairs(ints, s) {
  let n = ints.length
  let ans = []
  for(let i=0;i<n;i++){
    let tmp = ints.shift()
    let index = ints.indexOf(s-tmp)
    if(index != -1){
      
    }
  }
  return undefined ;
}
console.log(sumPairs([1, 2, 3, 4, 1, 0],2));